package com.cloud.gateway;



import com.cloud.gateway.handler.RouteXmlHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;


@SpringBootApplication
@EnableEurekaClient
public class GatewayApplication {
    public static void main(String[] args){

        ConfigurableApplicationContext context = SpringApplication.run(GatewayApplication.class, args);
        RouteXmlHandler routeXmlHandler = context.getBean(RouteXmlHandler.class);
        routeXmlHandler.readXml();
    }
}
